import { createRouter, createWebHistory } from 'vue-router';
import Home from '../components/login.vue';
import groupGoodsList from '../components/group/groupGoodsList.vue';
import SpikesList from '../components/SpikesList.vue';
import SpikeManagement from '../components/SpikeManagement.vue';
import addGroupGood from '../components/group/addGroupGood.vue';
import homePage from '../components/homePage.vue';

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },

    {
        path: '/groupLeaderRecordList',
        name: 'groupLeaderRecordList',
        component: groupLeaderRecordList
    },

    {
        path: '/groupGoodsList',
        name: 'groupGoodsList',
        component: groupGoodsList
    },
    {
        path: '/homePage',
        name: 'homePage',
        component: homePage
    },
    {
        path: '/addGroupGood',
        name: 'addGroupGood',
        component: addGroupGood
    },



    {
        path: '/SpikesList',
        name: 'SpikesList',
        component: SpikesList
    },
    {
        path: '/SpikeManagement',
        name: 'SpikeManagement',
        component: SpikeManagement
    },


    // 添加更多路由...
];

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
});

export default router;
